'''
#复习随机分配办公室
teachers=['A','B','C','D','E','F','G']
offices=[[],[],[]]

for name in teachers:
    import random
    num=random.randint(0,2)
    offices[num].append(name)

i=1
for office in offices:
    print(f'{i}号办公室被分配{len(offices)}人，分别是：')

    for name in office:
        print(name)

    i+=1

#元组tuple
t=(10,20,30)
print(type(t))

t=(10,)
print(type(t))

t=(10)
print(type(t))

t2=('hello',)
print(type(t2))

t=("aaa",'bbb','vvvv','dddd','aaa')
print(t.count('aaa'))
print(t.index("aaa"))
print(len(t))

t=('aaa','bbb',['cccc','dddd'])
t[2][0]='tom'
print(t[2])
'''

